package com.sheng.center.service;

import java.util.List;

import com.sheng.center.dao.WorkDao;
import com.sheng.center.entity.Work;

public class WorkServiceImpl implements WorkService {

	private WorkDao workDao;

	@Override
	public void add(Work work) {
		workDao.add(work);
	}

	@Override
	public void edit(Work work) {
		workDao.edit(work);

	}

	@Override
	public void delete(Work work) {
		workDao.delete(work);

	}

	@Override
	public List<Work> findAllList(Work work) {
		return workDao.findAllList(work);
	}

	@Override
	public Work findById(Work work) {
		return workDao.findById(work);
	}

	public WorkDao getWorkDao() {
		return workDao;
	}

	public void setWorkDao(WorkDao workDao) {
		this.workDao = workDao;
	}

}
